projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58f68f
)
Read GISTeq's mangled NMEA.
author
robertl
<robertl>
Wed, 6 Jun 2007 20:04:18 +0000
(20:04 +0000)
committer
robertl
<robertl>
Wed, 6 Jun 2007 20:04:18 +0000
(20:04 +0000)
nmea.c
patch
|
blob
|
history
diff --git
a/nmea.c
b/nmea.c
index 841f2483df71b7a0398e46f4ce40ff5da8a2e2f2..0e537a2808ff4dab8c459cdd67030fb14f4a69d5 100644
(file)
--- a/
nmea.c
+++ b/
nmea.c
@@
-829,6
+829,12
@@
nmea_parse_one_line(char *ibuf)
int ckval, ckcmp;
char *tbuf = lrtrim(ibuf);
+ /*
+ * GISTEQ PhotoTracker (stupidly) puts a bogus field in front
+ * of the line. Look for it and toss it.
+ */
+ if (0 == strncmp(tbuf, "---,", 4)) tbuf += 4;
+
if (*tbuf != '$') return;
ck = strrchr(tbuf, '*');